/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.concurrent.TimeUnit;

/**
 * <p>Project: app2022 - T9
 * <p>Powered by webrx On 2022-01-27 15:30:54
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class T9 {
    public static void main(String[] args) {
        //TimeUnit时间颗粒工具类
        long lon = TimeUnit.DAYS.toMillis(1);
        System.out.println(lon);
        System.out.println(24 * 60 * 60 * 1000);

        try {
            Thread.sleep(1000);//1000毫秒 = 1秒
            TimeUnit.SECONDS.sleep(5);//5秒
            TimeUnit.MINUTES.sleep(1);//1分
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("ok");
    }
}
